#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.device.mybatis.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import ${package}.device.mybatis.convert.DeviceMapperConvert;
import ${package}.device.mybatis.entity.Device;
import ${package}.device.mybatis.mapper.DeviceMapper;
import ${package}.device.repository.entity.DeviceDTO;
import ${package}.device.repository.service.DeviceService;
import org.springframework.stereotype.Service;

@Service
@Slf4j
@RequiredArgsConstructor
public class DeviceServiceImpl extends ServiceImpl<DeviceMapper, Device> implements DeviceService {
    private final DeviceMapperConvert deviceMapperConvert;
    @Override
    public DeviceDTO queryDevice(String id) {
        Device device = this.getById(id);
        return deviceMapperConvert.deviceToDTO(device);
    }
}
